home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / Make-config < prev    next >
Encoding:
Text File  |  1997-06-25  |  21.4 KB  |  820 lines

  1. # Make-config
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.1
  5. # Copyright (C) 1995-1996  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Make-config,v 1.11 1996/12/13 22:09:50 brianp Exp $
  23.  
  24. # $Log: Make-config,v $
  25. # Revision 1.11  1996/12/13 22:09:50  brianp
  26. # replaced -mieee-fp with -ffast-math in linux CFLAGS
  27. #
  28. # Revision 1.10  1996/12/09 22:57:13  brianp
  29. # added linux-prof config and some Linux compiler flag info
  30. #
  31. # Revision 1.9  1996/11/30 14:36:02  brianp
  32. # fixed problem with openstep config
  33. #
  34. # Revision 1.8  1996/11/24 19:33:26  brianp
  35. # added openstep config
  36. #
  37. # Revision 1.7  1996/11/02 04:16:48  brianp
  38. # new osf1 config from Thomas Graichen
  39. #
  40. # Revision 1.6  1996/10/31 01:18:03  brianp
  41. # incremented version to 2.1
  42. #
  43. # Revision 1.5  1996/10/09 03:23:03  brianp
  44. # added unixware-shared config
  45. #
  46. # Revision 1.4  1996/09/28 14:32:35  brianp
  47. # removed -lXext from irix6-n32-dso XLIBS
  48. # added -Wall to linux-debug CFLAGS
  49. #
  50. # Revision 1.3  1996/09/26 22:40:26  brianp
  51. # removed Fortran bindings stuff
  52. # use new mklib.irix6-* DSO scripts
  53. # added -I and -L options to sunos5 targets for Motif
  54. # changed osf1 flag from -ieee_with_inexact to -ieee_with_no_inexact
  55. # removed -lXext from IRIX DSO configs
  56. #
  57. # Revision 1.2  1996/09/13 01:07:49  brianp
  58. # replaced HPUX +Onofltacc flag with -J per Jacques Leroy
  59. #
  60. # Revision 1.1  1996/09/12 00:39:00  brianp
  61. # Initial revision
  62. #
  63.  
  64.  
  65.  
  66. # The following variables are passed to each Makefile:
  67. #
  68. # GL_LIB      the name of the Mesa "GL" library file (usually libMesaGL.a)
  69. # GLU_LIB     the name of the Mesa "GLU" library file (usually libMesaGLU.a)
  70. # TK_LIB      the name of the TK toolkit library file (usually libMesatk.a)
  71. # AUX_LIB     the name of the AUX toolkit library file (usually libMesaaux.a)
  72. # CC          the C compiler (usually cc or gcc)
  73. # CFLAGS      flags to C compiler (usually -O)
  74. # MAKELIB     the command and flags to make a library file (usually "ar rcv"
  75. #                   or a shell script for shared libs)
  76. # RANLIB      "ranlib" = use ranlib, "true" = don't use ranlib
  77. # XLIBS       libraries needed to link X apps (at least -lX11)
  78. #
  79. # Optionally, you can add definitions for the INCDIR and LIBDIR variables
  80. # which specify where to find the Mesa include files and where to put the
  81. # Mesa libraries.  The defaults are ../include and ../lib.  This use of
  82. # overriding makefile macros on the command line should work with most
  83. # variants of make.
  84. #
  85. # To enable profiling add -DPROFILE to the CFLAGS line.  Be sure to set the
  86. # MESA_PROFILE environment variable to enable printing of the profile report.
  87. #
  88. # If your system supports the X Shared Memory extension add -DSHM to the
  89. # CFLAGS line and add -lXext to the XLIBS line.
  90. #
  91. #
  92. # To add a new system configuration just follow the examples below and update
  93. # the top-level Makefile.
  94.  
  95.  
  96.  
  97.  
  98. aix:
  99.     $(MAKE) $(MFLAGS) targets \
  100.     "GL_LIB = libMesaGL.a" \
  101.     "GLU_LIB = libMesaGLU.a" \
  102.     "TK_LIB = libMesatk.a" \
  103.     "AUX_LIB = libMesaaux.a" \
  104.     "CC = cc" \
  105.     "CFLAGS = -O" \
  106.     "MAKELIB = ar ruv" \
  107.     "RANLIB = true" \
  108.     "XLIBS = -lX11"
  109.  
  110. aix-sl:
  111.     $(MAKE) $(MFLAGS) targets \
  112.     "GL_LIB = libMesaGL.a" \
  113.     "GLU_LIB = libMesaGLU.a" \
  114.     "TK_LIB = libMesatk.a" \
  115.     "AUX_LIB = libMesaaux.a" \
  116.     "CC = cc" \
  117.     "CFLAGS = -O" \
  118.     "MAKELIB = ../mklib.aix" \
  119.     "RANLIB = true" \
  120.     "XLIBS = -lX11"
  121.  
  122. # Make-config additions for the Amiga 3000 UX
  123. # Carlyn Voss Iuzzolino   5/8/95: 
  124. # Modified gcc part as follows:
  125. # Needed to take out -pedantic because that makes gcc complain about 
  126. # ANSI-CC not allowing #ident in Amiga's /usr/include/*.h files.
  127. # Took out -O2 (unrecognized option for gcc on the Amiga).
  128. # Needs /usr/lib/libsocket.a file. 
  129. amix:
  130.     $(MAKE) $(MFLAGS) targets \
  131.     "GL_LIB = libMesaGL.a" \
  132.     "GLU_LIB = libMesaGLU.a" \
  133.     "TK_LIB = libMesatk.a" \
  134.     "AUX_LIB = libMesaaux.a" \
  135.     "CC = cc" \
  136.     "CFLAGS =" \
  137.     "MAKELIB = ar ruv" \
  138.     "RANLIB = true" \
  139.     "XLIBS = -lX11 -lsocket -lnsl "
  140.  
  141. bsdos:
  142.     $(MAKE) $(MFLAGS) targets \
  143.     "GL_LIB = libMesaGL.a" \
  144.     "GLU_LIB = libMesaGLU.a" \
  145.     "TK_LIB = libMesatk.a" \
  146.     "AUX_LIB = libMesaaux.a" \
  147.     "CC = gcc" \
  148.     "CFLAGS = -I/usr/X11/include -O2" \
  149.     "MAKELIB = ar ruv" \
  150.     "RANLIB = ranlib" \
  151.     "XLIBS = -L/usr/X11/lib -lX11 -lipc"
  152.  
  153. dgux:
  154.     $(MAKE) $(MFLAGS) targets \
  155.     "GL_LIB = libMesaGL.a" \
  156.     "GLU_LIB = libMesaGLU.a" \
  157.     "TK_LIB = libMesatk.a" \
  158.     "AUX_LIB = libMesaaux.a" \
  159.     "CC = gcc" \
  160.     "CFLAGS = -O" \
  161.     "MAKELIB = ar ruv" \
  162.     "RANLIB = true" \
  163.     "XLIBS = -lX11"
  164.  
  165. freebsd:
  166.     $(MAKE) $(MFLAGS) targets \
  167.     "GL_LIB = libMesaGL.a" \
  168.     "GLU_LIB = libMesaGLU.a" \
  169.     "TK_LIB = libMesatk.a" \
  170.     "AUX_LIB = libMesaaux.a" \
  171.     "CC = gcc" \
  172.     "CFLAGS = -pipe -O2 -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100" \
  173.     "MAKELIB = ../mklib.freebsd" \
  174.     "RANLIB = true" \
  175.     "XLIBS = -L/usr/X11R6/lib -lXext -lX11"
  176.  
  177. gcc:
  178.     $(MAKE) $(MFLAGS) targets \
  179.     "GL_LIB = libMesaGL.a" \
  180.     "GLU_LIB = libMesaGLU.a" \
  181.     "TK_LIB = libMesatk.a" \
  182.     "AUX_LIB = libMesaaux.a" \
  183.     "CC = gcc" \
  184.     "CFLAGS = -pedantic -O2" \
  185.     "MAKELIB = ar ruv" \
  186.     "RANLIB = ranlib" \
  187.     "XLIBS = -lX11"
  188.  
  189. amiga-gcc:
  190.     $(MAKE) $(MFLAGS) targets \
  191.     "GL_LIB = libMesaGL.a" \
  192.     "GLU_LIB = libMesaGLU.a" \
  193.     "TK_LIB = libMesatk.a" \
  194.     "AUX_LIB = libMesaaux.a" \
  195.     "CC = gcc" \
  196.     "CFLAGS = -noixemul -pedantic -O2 $(LOCALFLAGS)" \
  197.     "MAKELIB = ar ruv" \
  198.     "RANLIB = ranlib" \
  199.     "XLIBS = -s" "AMIGA = 1"
  200.  
  201. hpux:
  202.     $(MAKE) $(MFLAGS) targets \
  203.     "GL_LIB = libMesaGL.a" \
  204.     "GLU_LIB = libMesaGLU.a" \
  205.     "TK_LIB = libMesatk.a" \
  206.     "AUX_LIB = libMesaaux.a" \
  207.     "CC = cc" \
  208.     "CFLAGS = +O2 -J -Aa +Obb5000 -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  209.     "MAKELIB = ar ruv" \
  210.     "RANLIB = true" \
  211.     "XLIBS = -L/usr/lib/X11R5 -lXext -lX11"
  212.  
  213. hpux-gcc:
  214.     $(MAKE) $(MFLAGS) targets \
  215.     "GL_LIB = libMesaGL.a" \
  216.     "GLU_LIB = libMesaGLU.a" \
  217.     "TK_LIB = libMesatk.a" \
  218.     "AUX_LIB = libMesaaux.a" \
  219.     "CC = gcc" \
  220.     "CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  221.     "MAKELIB = ar ruv" \
  222.     "RANLIB = true" \
  223.     "XLIBS = -L/usr/lib/X11R5 -lXext -lX11"
  224.  
  225. hpux-sl:
  226.     $(MAKE) $(MFLAGS) targets \
  227.     "GL_LIB = libMesaGL.sl" \
  228.     "GLU_LIB = libMesaGLU.sl" \
  229.     "TK_LIB = libMesatk.sl" \
  230.     "AUX_LIB = libMesaaux.sl" \
  231.     "CC = cc" \
  232.     "CFLAGS = +z +O2 -J +ESlit -Aa +Obb5000 -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  233.     "MAKELIB = ../mklib.hpux" \
  234.     "RANLIB = true" \
  235.     "XLIBS = -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lX11"
  236.  
  237. # For IRIX 4: don't use -fullwarn because it causes too much garbage
  238. irix4:
  239.     pmake $(MFLAGS) targets \
  240.     "GL_LIB = libMesaGL.a" \
  241.     "GLU_LIB = libMesaGLU.a" \
  242.     "TK_LIB = libMesatk.a" \
  243.     "AUX_LIB = libMesaaux.a" \
  244.     "CC = cc" \
  245.     "CFLAGS = -O2 -ansi -prototypes -DSHM" \
  246.     "MAKELIB = ar rcv" \
  247.     "RANLIB = true" \
  248.     "XLIBS = -lXext -lX11"
  249.  
  250. # On IRIX 5.3 -sopt causes a problem in drawpixels.c so we don't use it
  251. irix5:
  252.     pmake $(MFLAGS) targets \
  253.     "GL_LIB = libMesaGL.a" \
  254.     "GLU_LIB = libMesaGLU.a" \
  255.     "TK_LIB = libMesatk.a" \
  256.     "AUX_LIB = libMesaaux.a" \
  257.     "CC = cc" \
  258.     "CFLAGS = -O2 -ansi -fullwarn -DSHM" \
  259.     "MAKELIB = ar rcv" \
  260.     "RANLIB = true" \
  261.     "XLIBS = -lX11 -lXext"
  262.  
  263. # IRIX 5 using Dynamic Shared Objects (DSO)
  264. irix5-dso:
  265.     pmake $(MFLAGS) targets \
  266.     "GL_LIB = libMesaGL.so" \
  267.     "GLU_LIB = libMesaGLU.so" \
  268.     "TK_LIB = libMesatk.so" \
  269.     "AUX_LIB = libMesaaux.so" \
  270.     "CC = cc" \
  271.     "CFLAGS = -O2 -ansi -fullwarn -DSHM" \
  272.     "MAKELIB = ../mklib.irix5" \
  273.     "RANLIB = true" \
  274.     "XLIBS = -rpath ../lib -lX11"
  275.  
  276. irix6-32:
  277.     pmake $(MFLAGS) targets \
  278.     "GL_LIB = libMesaGL.a" \
  279.     "GLU_LIB = libMesaGLU.a" \
  280.     "TK_LIB = libMesatk.a" \
  281.     "AUX_LIB = libMesaaux.a" \
  282.     "CC = cc" \
  283.     "CFLAGS = -32 -mips2 -O2 -ansi -DSHM" \
  284.     "MAKELIB = ar rcv" \
  285.     "RANLIB = true" \
  286.     "XLIBS = -lX11 -lXext"
  287.  
  288. irix6-32-dso:
  289.     pmake $(MFLAGS) targets \
  290.     "GL_LIB = libMesaGL.so" \
  291.     "GLU_LIB = libMesaGLU.so" \
  292.     "TK_LIB = libMesatk.so" \
  293.     "AUX_LIB = libMesaaux.so" \
  294.     "CC = cc" \
  295.     "CFLAGS = -32 -mips2 -O2 -ansi -DSHM" \
  296.     "MAKELIB = ../mklib.irix6-32" \
  297.     "RANLIB = true" \
  298.     "XLIBS = -lX11"
  299.  
  300. # For IRIX 6: -woff:
  301. #   1185 - enumerated type mixed with another type
  302. irix6-n32:
  303.     pmake $(MFLAGS) targets \
  304.     "GL_LIB = libMesaGL.a" \
  305.     "GLU_LIB = libMesaGLU.a" \
  306.     "TK_LIB = libMesatk.a" \
  307.     "AUX_LIB = libMesaaux.a" \
  308.     "CC = cc" \
  309.     "CFLAGS = -n32 -mips3 -O3 -ansi -DSHM -woff 1185" \
  310.     "MAKELIB = ar rcv" \
  311.     "RANLIB = true" \
  312.     "XLIBS = -lX11 -lXext"
  313.  
  314. irix6-n32-dso:
  315.     pmake $(MFLAGS) targets \
  316.     "GL_LIB = libMesaGL.so" \
  317.     "GLU_LIB = libMesaGLU.so" \
  318.     "TK_LIB = libMesatk.so" \
  319.     "AUX_LIB = libMesaaux.so" \
  320.     "CC = cc" \
  321.     "CFLAGS = -n32 -mips3 -O3 -ansi -DSHM -woff 1185" \
  322.     "MAKELIB = ../mklib.irix6-n32" \
  323.     "RANLIB = true" \
  324.     "XLIBS = -lX11"
  325.  
  326. # For IRIX 6-64: -woff:
  327. #   1068 - integer conversion resulted in a change of sign
  328. #   1069 - integer conversion resulted in truncation
  329. #   1174 - variable was declared but never referenced
  330. #   1185 - enumerated type mixed with another type
  331. #   1209 - controlling expression is constant
  332. #   1474 - declaring a void parameter list with a typedef is nonstandard
  333. #   1552 - variable was set but never used
  334. irix6-64:
  335.     pmake $(MFLAGS) targets \
  336.     "GL_LIB = libMesaGL.a" \
  337.     "GLU_LIB = libMesaGLU.a" \
  338.     "TK_LIB = libMesatk.a" \
  339.     "AUX_LIB = libMesaaux.a" \
  340.     "CC = cc" \
  341.     "CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DSHM" \
  342.     "MAKELIB = ar rcv" \
  343.     "RANLIB = true" \
  344.     "XLIBS = -lX11 -lXext"
  345.  
  346. irix6-64-dso:
  347.     pmake $(MFLAGS) targets \
  348.     "GL_LIB = libMesaGL.so" \
  349.     "GLU_LIB = libMesaGLU.so" \
  350.     "TK_LIB = libMesatk.so" \
  351.     "AUX_LIB = libMesaaux.so" \
  352.     "CC = cc" \
  353.     "CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DSHM" \
  354.     "MAKELIB = ../mklib.irix6-64" \
  355.     "RANLIB = true" \
  356.     "XLIBS = -lX11"
  357.  
  358. # May want to add these CFLAGS for better performance under Linux and GCC:
  359. # -fPIC -O2 -ansi -pedantic -mieee-fp -DSHM -funroll-loops
  360. # -fexpensive-optimizations -fomit-frame-pointer -ffast-math
  361. # and  -malign-loops=2 -malign-jumps=2 -malign-functions=2 for Pentium
  362.  
  363. linux:
  364.     $(MAKE) $(MFLAGS) targets \
  365.     "GL_LIB = libMesaGL.a" \
  366.     "GLU_LIB = libMesaGLU.a" \
  367.     "TK_LIB = libMesatk.a" \
  368.     "AUX_LIB = libMesaaux.a" \
  369.     "CC = gcc" \
  370.     "CFLAGS = -O2 -ansi -pedantic -funroll-loops -ffast-math -DSHM" \
  371.     "MAKELIB = ar ruv" \
  372.     "RANLIB = ranlib" \
  373.     "XLIBS = -L/usr/X11/lib -lX11 -lXext"
  374.  
  375. # One Linux user reports having to use these XLIBS:
  376. #    -lMrm -lXmu -lXt -lXext -lSM -lICE -lX11
  377.  
  378. linux-elf:
  379.     $(MAKE) $(MFLAGS) targets \
  380.     "GL_LIB = libMesaGL.so" \
  381.     "GLU_LIB = libMesaGLU.so" \
  382.     "TK_LIB = libMesatk.so" \
  383.     "AUX_LIB = libMesaaux.so" \
  384.     "CC = gcc" \
  385.     "CFLAGS = -O2 -ansi -pedantic -fPIC -funroll-loops -ffast-math -DSHM" \
  386.     "MAKELIB = ../mklib.linux" \
  387.     "RANLIB = true" \
  388.     "XLIBS = -L/usr/X11/lib -lX11 -lXext"
  389.  
  390. # For Linux with prototype Cirrus Mondello 3-D card
  391. linux-mondello:
  392.     $(MAKE) $(MFLAGS) targets \
  393.     "GL_LIB = libMesaGL.so" \
  394.     "GLU_LIB = libMesaGLU.so" \
  395.     "TK_LIB = libMesatk.so" \
  396.     "AUX_LIB = libMesaaux.so" \
  397.     "CC = gcc" \
  398.     "CFLAGS = -O2 -ansi -pedantic -fPIC -funroll-loops -mieee-fp -DSHM -DMONDELLO" \
  399.     "MAKELIB = ../mklib.linux" \
  400.     "RANLIB = true" \
  401.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lclgd547x"
  402.  
  403. machten-2.2:
  404.     $(MAKE) $(MFLAGS) targets \
  405.     "GL_LIB = libMesaGL.a" \
  406.     "GLU_LIB = libMesaGLU.a" \
  407.     "TK_LIB = libMesatk.a" \
  408.     "AUX_LIB = libMesaaux.a" \
  409.     "CC = gcc" \
  410.     "CFLAGS = -DTENON -D__MACHTEN__ -fstrength-reduce -m68881 -O2" \
  411.     "MAKELIB = ar rcv" \
  412.     "RANLIB = ranlib" \
  413.     "XLIBS = -L/usr/lib/X11 -lX11"
  414.  
  415. machten-4.0:
  416.     $(MAKE) targets \
  417.     "GL_LIB = libMesaGL.a" \
  418.     "GLU_LIB = libMesaGLU.a" \
  419.     "TK_LIB = libMesatk.a" \
  420.     "AUX_LIB = libMesaaux.a" \
  421.     "CC = gcc" \
  422.     "CFLAGS = -DTENON -D__MACHTEN__ -fstrength-reduce -O2" \
  423.     "MAKELIB = ar rcv" \
  424.     "RANLIB = ranlib" \
  425.     "XLIBS = -L/usr/X11R5/lib -lX11"
  426.  
  427. mklinux:
  428.     $(MAKE) targets \
  429.     "GL_LIB = libMesaGL.a" \
  430.     "GLU_LIB = libMesaGLU.a" \
  431.     "TK_LIB = libMesatk.a" \
  432.     "AUX_LIB = libMesaaux.a" \
  433.     "CC = gcc" \
  434.     "CFLAGS = -pedantic -O2" \
  435.     "MAKELIB = ar ruv" \
  436.     "RANLIB = ranlib" \
  437.     "XLIBS = -L/usr/X11/lib -lX11"
  438.  
  439. netbsd:
  440.     $(MAKE) $(MFLAGS) targets \
  441.     "GL_LIB = libMesaGL.so" \
  442.     "GLU_LIB = libMesaGLU.so" \
  443.     "TK_LIB = libMesatk.so" \
  444.     "AUX_LIB = libMesaaux.so" \
  445.     "CC = gcc" \
  446.     "CFLAGS = -pipe -O2 -m486 -fPIC -I/usr/X11R6/include -DHZ=100"  \
  447.     "MAKELIB = ../mklib.netbsd" \
  448.     "RANLIB = true" \
  449.     "XLIBS = -L/usr/X11R6/lib -lX11"
  450.  
  451. next:   
  452.     $(MAKE) -f Makefile.NeXT targets    \
  453.     "GL_LIB = libMesaGL.a" \
  454.     "GLU_LIB = libMesaGLU.a" \
  455.     "TK_LIB = libMesatk.a" \
  456.         "AUX_LIB = libMesaaux.a" \
  457.     "CC = cc" \
  458.     "CFLAGS = -O2 -DNeXT" \
  459.     "MAKELIB = ar ruv"  \
  460.     "RANLIB = ranlib" \
  461.     "XLIBS = -lNeXT_s -lsys_s"
  462.  
  463. # For NeXTStep on non-X86 with X11
  464. next-x11:
  465.     $(MAKE) $(MFLAGS) targets \
  466.     "GL_LIB = libMesaGL.a" \
  467.     "GLU_LIB = libMesaGLU.a" \
  468.     "TK_LIB = libMesatk.a" \
  469.     "AUX_LIB = libMesaaux.a" \
  470.     "CC = cc" \
  471.     "CFLAGS = -pedantic -funroll-loops -O2 " \
  472.     "MAKELIB = ar ruv" \
  473.     "RANLIB = ranlib" \
  474.     "XLIBS = -L/usr/X11/lib -lX11 -lXext"
  475.  
  476. # For NeXTStep on Intel X86 with X11
  477. next-x86-x11:
  478.     $(MAKE) $(MFLAGS) targets \
  479.     "GL_LIB = libMesaGL.a" \
  480.     "GLU_LIB = libMesaGLU.a" \
  481.     "TK_LIB = libMesatk.a" \
  482.     "AUX_LIB = libMesaaux.a" \
  483.     "CC = cc" \
  484.     "CFLAGS = -pedantic -funroll-loops -O2 -mieee-fp " \
  485.     "MAKELIB = ar ruv" \
  486.     "RANLIB = ranlib" \
  487.     "XLIBS = -L/usr/X11/lib -lX11 -lXext"
  488.  
  489. openstep:   
  490.     $(MAKE) -f Makefile.OpenStep targets \
  491.     "GL_LIB = libMesaGL.a" \
  492.     "GLU_LIB = libMesaGLU.a" \
  493.     "TK_LIB = libMesatk.a" \
  494.     "AUX_LIB = libMesaaux.a" \
  495.     "CC = cc" \
  496.     "CFLAGS = -O4 -DNeXT" \
  497.     "MAKELIB = ar ruv" \
  498.     "RANLIB = ranlib"
  499.  
  500. osf1:
  501.     $(MAKE) $(MFLAGS) targets \
  502.     "GL_LIB = libMesaGL.so" \
  503.     "GLU_LIB = libMesaGLU.so" \
  504.     "TK_LIB = libMesatk.so" \
  505.     "AUX_LIB = libMesaaux.so" \
  506.     "CC = cc" \
  507.     "CFLAGS = -O2 -std1 -ieee_with_no_inexact -DSHM" \
  508.     "MAKELIB = ../mklib.osf1" \
  509.     "RANLIB = true" \
  510.     "XLIBS = -lX11 -lXext"
  511.  
  512. # QNX V4 & Watcom Compiler
  513. qnx:
  514.     $(MAKE) $(MFLAGS) targets \
  515.     "GL_LIB = libMesaGL.a" \
  516.     "GLU_LIB = libMesaGLU.a" \
  517.     "TK_LIB = libMesatk.a" \
  518.     "AUX_LIB = libMesaaux.a" \
  519.     "CC = cc" \
  520.     "CFLAGS = -O" \
  521.     "MAKELIB = wlib" \
  522.     "RANLIB = wlib" \
  523.     "XLIBS = -L/usr/X11/lib -lX11"
  524.  
  525. sco:
  526.     $(MAKE) $(MFLAGS) targets \
  527.     "GL_LIB = libMesaGL.a" \
  528.     "GLU_LIB = libMesaGLU.a" \
  529.     "TK_LIB = libMesatk.a" \
  530.     "AUX_LIB = libMesaaux.a" \
  531.     "CC = gcc" \
  532.     "CFLAGS = -pedantic -O2 -mieee-fp" \
  533.     "MAKELIB = ar ruv" \
  534.     "RANLIB = true" \
  535.     "XLIBS = -L/usr/X11/lib -lX11"
  536.  
  537. solaris-x86:
  538.     $(MAKE) targets \
  539.     "GL_LIB = libMesaGL.a" \
  540.     "GLU_LIB = libMesaGLU.a" \
  541.     "TK_LIB = libMesatk.a" \
  542.     "AUX_LIB = libMesaaux.a" \
  543.     "CC = cc" \
  544.     "CFLAGS = -Xa -xO3 -xpentium -KPIC -I/usr/openwin/include -DSHM" \
  545.     "MAKELIB = ../mklib.solaris" \
  546.     "RANLIB = true" \
  547.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext"
  548.  
  549. solaris-x86-gcc:
  550.     $(MAKE) targets \
  551.     "GL_LIB = libMesaGL.a" \
  552.     "GLU_LIB = libMesaGLU.a" \
  553.     "TK_LIB = libMesatk.a" \
  554.     "AUX_LIB = libMesaaux.a" \
  555.     "CC = gcc" \
  556.     "CFLAGS = -O3 -m486 -fPIC -I/usr/openwin/include -DSHM" \
  557.     "MAKELIB = ../mklib.solaris" \
  558.     "RANLIB = true" \
  559.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext"
  560.  
  561. #solaris-gcc:
  562. #   $(MAKE) $(MFLAGS) targets \
  563. #   "GL_LIB = libMesaGL.a" \
  564. #   "GLU_LIB = libMesaGLU.a" \
  565. #   "TK_LIB = libMesatk.a" \
  566. #   "AUX_LIB = libMesaaux.a" \
  567. #   "CC = gcc" \
  568. #   "CFLAGS = -pedantic -O2" \
  569. #   "MAKELIB = ar ruv" \
  570. #   "RANLIB = true" \
  571. #   "XLIBS = -lX11 -L/usr/ucblib -lsocket -lnsl -lucb"
  572.  
  573. sunos4:
  574.     $(MAKE) $(MFLAGS) targets \
  575.     "GL_LIB = libMesaGL.a" \
  576.     "GLU_LIB = libMesaGLU.a" \
  577.     "TK_LIB = libMesatk.a" \
  578.     "AUX_LIB = libMesaaux.a" \
  579.     "CC = acc" \
  580.     "CFLAGS = -O -DSHM -DSUNOS4" \
  581.     "MAKELIB = ar ruv" \
  582.     "RANLIB = ranlib" \
  583.     "XLIBS = -lX11 -lXext"
  584.  
  585. sunos4-sl:
  586.     $(MAKE) $(MFLAGS) targets \
  587.     "GL_LIB = libMesaGL.so" \
  588.     "GLU_LIB = libMesaGLU.so" \
  589.     "TK_LIB = libMesatk.so" \
  590.     "AUX_LIB = libMesaaux.so" \
  591.     "CC = acc" \
  592.     "CFLAGS = -Kpic -O -I/usr/include/X11R5 -DSHM -DSUNOS4" \
  593.     "MAKELIB = ld -assert pure-text -o" \
  594.     "RANLIB = true" \
  595.     "XLIBS = -L/usr/lib/X11R5 -lX11 -lXext"
  596.  
  597. sunos4-gcc:
  598.     $(MAKE) $(MFLAGS) targets \
  599.     "GL_LIB = libMesaGL.a" \
  600.     "GLU_LIB = libMesaGLU.a" \
  601.     "TK_LIB = libMesatk.a" \
  602.     "AUX_LIB = libMesaaux.a" \
  603.     "CC = gcc" \
  604.     "CFLAGS = -O3 -DSHM -DSUNOS4" \
  605.     "MAKELIB = ar ruv" \
  606.     "RANLIB = ranlib" \
  607.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  608.  
  609. sunos4-gcc-sl:
  610.     $(MAKE) $(MFLAGS) targets \
  611.     "GL_LIB = libMesaGL.so.2.1" \
  612.     "GLU_LIB = libMesaGLU.so.2.1" \
  613.     "TK_LIB = libMesatk.so.2.1" \
  614.     "AUX_LIB = libMesaaux.so.2.1" \
  615.     "CC = gcc" \
  616.     "CFLAGS = -fPIC -O3 -I/usr/include/X11R5 -I/usr/include/X11R5 -DSHM -DSUNOS4" \
  617.     "MAKELIB = ld -assert pure-text -o" \
  618.     "RANLIB = true" \
  619.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  620.  
  621. sunos5:
  622.     $(MAKE) $(MFLAGS) targets \
  623.     "GL_LIB = libMesaGL.a" \
  624.     "GLU_LIB = libMesaGLU.a" \
  625.     "TK_LIB = libMesatk.a" \
  626.     "AUX_LIB = libMesaaux.a" \
  627.     "CC = cc" \
  628.     "CFLAGS = -Xa -O -I/usr/openwin/include -I/usr/dt/include -DSHM" \
  629.     "MAKELIB = ar ruv" \
  630.     "RANLIB = true" \
  631.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext"
  632.  
  633. sunos5-sl:
  634.     $(MAKE) $(MFLAGS) targets \
  635.     "GL_LIB = libMesaGL.so" \
  636.     "GLU_LIB = libMesaGLU.so" \
  637.     "TK_LIB = libMesatk.so" \
  638.     "AUX_LIB = libMesaaux.so" \
  639.     "CC = cc" \
  640.     "CFLAGS = -Kpic -Xa -O -I/usr/openwin/include -I/usr/dt/include -DSHM" \
  641.     "MAKELIB = ld -G -o" \
  642.     "RANLIB = true" \
  643.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext"
  644.  
  645. sunos5-gcc:
  646.     $(MAKE) $(MFLAGS) targets \
  647.     "GL_LIB = libMesaGL.a" \
  648.     "GLU_LIB = libMesaGLU.a" \
  649.     "TK_LIB = libMesatk.a" \
  650.     "AUX_LIB = libMesaaux.a" \
  651.     "CC = gcc" \
  652.     "CFLAGS = -O3 -I/usr/openwin/include -DSHM" \
  653.     "MAKELIB = ar ruv" \
  654.     "RANLIB = true" \
  655.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
  656.  
  657. sunos5-gcc-sl:
  658.     $(MAKE) $(MFLAGS) targets \
  659.     "GL_LIB = libMesaGL.so" \
  660.     "GLU_LIB = libMesaGLU.so" \
  661.     "TK_LIB = libMesatk.so" \
  662.     "AUX_LIB = libMesaaux.so" \
  663.     "CC = gcc" \
  664.     "CFLAGS = -fpic -O3 -I/usr/openwin/include -DSHM" \
  665.     "MAKELIB = ld -G -o" \
  666.     "RANLIB = true" \
  667.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext"
  668.  
  669. sunos5-x11r6-gcc-sl:
  670.     $(MAKE) $(MFLAGS) targets \
  671.     "GL_LIB = libMesaGL.so" \
  672.     "GLU_LIB = libMesaGLU.so" \
  673.     "TK_LIB = libMesatk.so" \
  674.     "AUX_LIB = libMesaaux.so" \
  675.     "CC = gcc" \
  676.     "CFLAGS = -pipe -fpic -O3 -DSHM" \
  677.     "MAKELIB = ld -G -o" \
  678.     "RANLIB = true" \
  679.     "XLIBS = -L/usr/ucblib -lX11 -lXext -lnsl -lsocket -lucb"
  680.  
  681. # from Ron Metoyer (metoyer@iexist.flw.lucent.com)
  682. sunSolaris-CC:
  683.     $(MAKE) $(MFLAGS) targets \
  684.     "GL_LIB = libMesaGL.a" \
  685.     "GLU_LIB = libMesaGLU.a" \
  686.     "TK_LIB = libMesatk.a" \
  687.     "AUX_LIB = libMesaaux.a" \
  688.     "CC = CC" \
  689.     "CFLAGS = -O -I/usr/openwin/include -DSHM" \
  690.     "MAKELIB = ar ruv" \
  691.     "RANLIB = true" \
  692.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext"
  693.  
  694. #This config doesn't work, Ultrix C compiler isn't ANSI compliant
  695. ultrix:
  696.     $(MAKE) $(MFLAGS) targets \
  697.     "GL_LIB = libMesaGL.a" \
  698.     "GLU_LIB = libMesaGLU.a" \
  699.     "TK_LIB = libMesatk.a" \
  700.     "AUX_LIB = libMesaaux.a" \
  701.     "CC = cc" \
  702.     "CFLAGS = -O -Dconst=/**/" \
  703.     "MAKELIB = ar rusv" \
  704.     "RANLIB = true" \
  705.     "XLIBS = -lX11"
  706.  
  707. ultrix-gcc:
  708.     $(MAKE) $(MFLAGS) targets \
  709.     "GL_LIB = libMesaGL.a" \
  710.     "GLU_LIB = libMesaGLU.a" \
  711.     "TK_LIB = libMesatk.a" \
  712.     "AUX_LIB = libMesaaux.a" \
  713.     "CC = gcc" \
  714.     "CFLAGS = -pedantic -O2" \
  715.     "MAKELIB = ar ruv" \
  716.     "RANLIB = ranlib" \
  717.     "XLIBS = -lX11"
  718.  
  719. # tested on Cray C90 running UNICOS 8.0.4
  720. unicos:
  721.     $(MAKE) $(MFLAGS) targets \
  722.     "GL_LIB = libMesaGL.a" \
  723.     "GLU_LIB = libMesaGLU.a" \
  724.     "TK_LIB = libMesatk.a" \
  725.     "AUX_LIB = libMesaaux.a" \
  726.     "CC = cc" \
  727.     "CFLAGS =" \
  728.     "MAKELIB = ar rcv" \
  729.     "RANLIB = true" \
  730.     "XLIBS = -lX11 -lXext"
  731.  
  732. unixware:
  733.     $(MAKE) $(MFLAGS) targets \
  734.     "GL_LIB = libMesaGL.a" \
  735.     "GLU_LIB = libMesaGLU.a" \
  736.     "TK_LIB = libMesatk.a" \
  737.     "AUX_LIB = libMesaaux.a" \
  738.     "CC = cc" \
  739.     "CFLAGS = -O -I/usr/X/include -DSHM" \
  740.     "MAKELIB = ar ruv" \
  741.     "RANLIB = true" \
  742.     "XLIBS = -lX11 -lXext -lsocket -lnsl"
  743.  
  744. unixware-shared:
  745.     $(MAKE) $(MFLAGS) targets \
  746.     "GL_LIB = libMesaGL" \
  747.     "GLU_LIB = libMesaGLU" \
  748.     "TK_LIB = libMesatk" \
  749.     "AUX_LIB = libMesaaux" \
  750.     "CC = cc" \
  751.     "CFLAGS = -O -I/usr/X/include -KPIC,inline -DSHM" \
  752.     "MAKELIB = ../mklib.solaris" \
  753.     "RANLIB = true" \
  754.     "XLIBS = -lX11 -lXext -lsocket -lnsl"
  755.  
  756. vistra:
  757.     $(MAKE) $(MFLAGS) targets \
  758.     "GL_LIB = libMesaGL.a" \
  759.     "GLU_LIB = libMesaGLU.a" \
  760.     "TK_LIB = libMesatk.a" \
  761.     "AUX_LIB = libMesaaux.a" \
  762.     "CC = gcc" \
  763.     "CFLAGS = -pedantic -O2" \
  764.     "MAKELIB = ar ruv" \
  765.     "RANLIB = true" \
  766.     "XLIBS = -lX11 -lsocket -lnsl -lgen"
  767.  
  768.  
  769. # for debugging on IRIX 5.x systems
  770. debug:
  771.     pmake $(MFLAGS) targets \
  772.     "GL_LIB = libMesaGL.a" \
  773.     "GLU_LIB = libMesaGLU.a" \
  774.     "TK_LIB = libMesatk.a" \
  775.     "AUX_LIB = libMesaaux.a" \
  776.     "CC = cc" \
  777.     "CFLAGS = -g -ansi -prototypes -fullwarn -DSHM" \
  778.     "MAKELIB = ar rcv" \
  779.     "RANLIB = true" \
  780.     "XLIBS = -lX11 -lXext -lfpe -lXext"
  781.  
  782. DEBUG:
  783.     pmake $(MFLAGS) targets \
  784.     "GL_LIB = libMesaGL.a" \
  785.     "GLU_LIB = libMesaGLU.a" \
  786.     "TK_LIB = libMesatk.a" \
  787.     "AUX_LIB = libMesaaux.a" \
  788.     "CC = cc" \
  789.     "CFLAGS = -g -ansi -prototypes -fullwarn -DSHM -DDEBUG" \
  790.     "MAKELIB = ar rcv" \
  791.     "RANLIB = true" \
  792.     "XLIBS = -lX11 -lXext -lfpe"
  793.  
  794. # for debugging on Linux systems
  795. linux-debug:
  796.     $(MAKE) $(MFLAGS) targets \
  797.     "GL_LIB = libMesaGL.a" \
  798.     "GLU_LIB = libMesaGLU.a" \
  799.     "TK_LIB = libMesatk.a" \
  800.     "AUX_LIB = libMesaaux.a" \
  801.     "CC = gcc" \
  802.     "CFLAGS = -g -ansi -pedantic -Wall -DSHM" \
  803.     "MAKELIB = ar ruv" \
  804.     "RANLIB = ranlib" \
  805.     "XLIBS = -L/usr/X11/lib -lX11 -lXext"
  806.  
  807. # for profiling on Linux systems
  808. linux-prof:
  809.     $(MAKE) $(MFLAGS) targets \
  810.     "GL_LIB = libMesaGL.a" \
  811.     "GLU_LIB = libMesaGLU.a" \
  812.     "TK_LIB = libMesatk.a" \
  813.     "AUX_LIB = libMesaaux.a" \
  814.     "CC = gcc" \
  815.     "CFLAGS = -O2 -pg -ansi -pedantic -funroll-loops -mieee-fp -DSHM" \
  816.     "MAKELIB = ar ruv" \
  817.     "RANLIB = ranlib" \
  818.     "XLIBS = -L/usr/X11/lib -lX11 -lXext"
  819.  
  820.